<script type="text/javascript">
	window.onload=function()
		{
		   tinyMCE.init({
		    mode : "exact",
		    elements: "content",
		    theme : "advanced",
		    plugins : "inlinepopups,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
		    theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,|,visualchars,nonbreaking",
		    theme_advanced_toolbar_location : "top",
		    theme_advanced_toolbar_align : "left",
		    theme_advanced_path_location : "bottom",
		    extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
		    theme_advanced_resize_horizontal : 'true',
		    theme_advanced_resizing : 'true',
		    apply_source_formatting : 'true',
		    convert_urls : 'false',
		    force_br_newlines : 'true',
		    doctype : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
		  });
		};

</script>

 <!--Form Tittle-->
<div class="page-title">
	<h2><?php echo $this->__('User Post News') ?></h2>
</div>
<!--Form Information-->
<form id="person-form-validate" method="post" action="<?php echo $this->getActionOfForm()?>" enctype="multipart/form-data">
	<div class="fieldset">
		<h2 class="legend">
			<?php echo $this->__('Main content') ?>
		</h2>
		<ul class="form-list">
			<li class="fields">
				<div class="title-post">
					<div class="field name-firstname">
						<label class="required" for="title"><em>*</em><?php echo $this->__('Title')?></label>
						<div class="input-box">
							<input type="text" class="input-text required-entry" maxlength="255" title="Title" value="" name="title" id="title">
						</div>
					</div>
				</div>
				<!-- end.title-post -->
			</li>
			<li class="fields">
				<div class="field gender">
					<label class="required" for="url_key"><em>*</em><?php echo $this->__('Url Key')?></label>
					<div class="input-box">
						<input type="text" class="input-text required-entry" maxlength="255" title="Url Key" value="" name="url_key" id="url_key">
					</div>
				</div>
			</li>
			<!-- <li class="fields">
				<div class="field status">
					<label class="required" for="status"><em>*</em><?php echo $this->__('Status')?></label>
					<div class="input-box">
						<input type="text" class="input-text required-entry" maxlength="255" title="Url Key" value="" name="status" id="status">
						<select id="status" name="status" class=" required-entry select">
							<option value="1">Enabled</option>
							<option value="2">Disabled</option>
						</select>
					</div>
				</div>
			</li> -->
			<li class="fields">
				<div class="field category">
					<label class="required" for="category"><em>*</em><?php echo $this->__('Category')?></label>
					<div class="input-box">
						<select id="category_id" name="category_id" class=" required-entry select">
							<?php  
								$categorys  = $this->getCategory();
								foreach ($categorys as $category) { ?>
									<option value="<?php echo $category['value'] ?>"><?php echo $category['label'] ?></option>
							<?php } ?>
						</select>
					</div>
				</div>
			</li>
			<li class="fields">
				<div class="field images">
					<label class="required" for="news_images"><em>*</em><?php echo $this->__('Images')?></label>
					<div class="input-box">
						<input id="news_images" name="news_images" value="" type="file" class=" required-entry"/>
					</div>
				</div>
			</li>
			<li class="fields">
				<div class="field summary">
					<label class="required" for="summary"><em>*</em><?php echo $this->__('Summary')?></label>
					<div class="input-box">
						<textarea id="summary" name="summary" title="Summary" style="" rows="2" cols="15" class=" required-entry textarea"></textarea>
					</div>
				</div>
			</li>
			<li class="fields">
				<div class="field content">
					<label class="required" for="content"><em>*</em><?php echo $this->__('content')?></label>
					<div class="input-box">
						<textarea id="content" name="content" title="Summary" style="width:300px; height:120px;" rows="2" cols="15" class=" required-entry textarea"></textarea>
					</div>
				</div>
			</li>
		</ul>
	</div>
	<!--Button & Link-->
	<div class="buttons-set">
		<p class="required">* <?php echo $this->__('Required Fields')?></p>
		<p class="back-link"><a class="back-link" href="<?php echo $this->getBaseUrl();?>"><small>&laquo;</small>Back</a></p>
		<button class="button" title="Submit" type="submit"><span><span><?php echo $this->__('Submit')?></span></span></button>
	</div>
</form>

<script type="text/javascript">
	var dataForm = new VarienForm('person-form-validate', true);
</script>